package com.lc202407;

public class Solution1844 {
    public String replaceDigits(String s) {
        char[] chars = s.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            if (i % 2 != 0) {
                chars[i] = (char) (chars[i - 1] + Integer.parseInt(String.valueOf(chars[i])));
            }
        }
        return new String(chars);
    }
}
